import requests
import uncurl



def __query_requests__():
    curl_command = '''
       curl 'http://10.10.80.215:9089/api/quota/report/preview?monthTime=2024-12' \
  -H 'Accept: application/json' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  -H 'Connection: keep-alive' \
  -H 'Referer: http://10.10.80.215:9089/eoms-app-h5/operational-analysis/work-report/?activeKey=1' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36' \
  -H 'combine-token: fa20f4e3-f51a-4911-9637-a56322723e4f,6d3ff923-df3e-4c35-9f41-790081311ead' \
  --insecure
    '''

    req = uncurl.parse_context(curl_command)

    response = requests.request(
        method=req.method,
        url=req.url,
        headers=req.headers,
        data=req.data,
        verify=False
    )

    print(response.json())

if __name__ == '__main__':
    __query_requests__()